<?php

//http://www.youtube.com/watch?v=BO2lzbSNvy0&list=PLMVWdD5bcndrmfgQdYeZqTx-OP8SQilJK
//by ralvear 20130809

define( 'BNVA' , DIRECTORY_SEPARATOR );
define( 'RUTA' , realpath( dirname( __FILE__ ) ) . BNVA );
define( 'APP_RUTA' , RUTA . 'app' . BNVA  );

require_once (APP_RUTA . 'conf.php');
require_once (APP_RUTA . 'peticion.php');
require_once (APP_RUTA . 'bootstrap.php');
require_once (APP_RUTA . 'controlador.php');
require_once (APP_RUTA . 'modelo.php');
require_once (APP_RUTA . 'vista.php');
require_once (APP_RUTA . 'postgres.php');
require_once (APP_RUTA . 'sesion.php');

Sesion::init();

try
{
	Bootstrap::correr( new Peticion);
}
catch(Exception $exception)
{
	echo $exception->getMessage();
}

?>